package com.imu.purse.modules.trade.entity;

import com.imu.common.validator.group.UpdateGroup;
import com.imu.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


/**
 * 易买宝充值详情表
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-07-02 23:47:18
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_ymb_detail")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class YmbDetailEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//用户ID
	@Column(name="user_id")
	private Long userId;
	
	//金额
	@Column(name="money")
	private BigDecimal money;
	
	//银行卡号
	@Column(name="card_no")
	private String cardNo;
	
	//备注
	@Column(name="phone")
	private String phone;
	
	//订单状态0:支付中,1:完成,2:错误
	@Column(name="order_state")
	private Integer orderState;
	
	//结果描述
	@Column(name="description")
	private String description;
	
	//创建时间
	@Column(name="create_time")
	private Long createTime;
	
	//更新时间
	@Column(name="update_time")
	private Long updateTime;
	
}
